package lights;

import hulppakket.Color3f;
import hulppakket.Intersection;
import hulppakket.Vector3f;

public abstract class Light {

	private Color3f color;
	private float intensity;
	public String name;

	public Light(Color3f color, float intensity, String name) {
		this.color = color;
		this.intensity = intensity;
		this.name = name;
	}

	public Color3f getIntensifiedColor() {
		return this.color.scale(intensity);
	}

	public String getName() {
		return this.name;
	}

	public abstract Vector3f getVectorPointingToLight(Intersection intersection);
}
